The following section contains the Page_Load function.
If the page has been submitted (IsPostBack is true) the user's
login credentials are checked (that part is omitted here for brevity
but will be discussed in the next two sections: "Authenticate the
login credentials" and "Create the FormsAuthenticationTicket (with
RedirectFromLoginPage)".
If the user's authentication fails, the Text in the asp:Label
named Msg is displayed.
(Notice that the form takes the user's e-mail address as the
login name.)
|